import request from '@/utils/request'

// 回复用户反馈
export function replyCmsFeedback(data) {
  return request({
    url: '/cms/cmsFeedback/reply',
    method: 'post',
    data: data
  })
}

// 查询用户反馈列表
export function listCmsFeedback(query) {
  return request({
    url: '/cms/cmsFeedback/list',
    method: 'get',
    params: query
  })
}

// 查询用户反馈详细
export function getCmsFeedback(id) {
  return request({
    url: '/cms/cmsFeedback/' + id,
    method: 'get'
  })
}

// 新增用户反馈
export function addCmsFeedback(data) {
  return request({
    url: '/cms/cmsFeedback',
    method: 'post',
    data: data
  })
}

// 修改用户反馈
export function updateCmsFeedback(data) {
  return request({
    url: '/cms/cmsFeedback',
    method: 'put',
    data: data
  })
}

// 删除用户反馈
export function delCmsFeedback(id) {
  return request({
    url: '/cms/cmsFeedback/' + id,
    method: 'delete'
  })
}
